var events=require('events');
var Emitter=events.EventEmitter;

function Dog(name,energy){
    Emitter.call(this);
    this.name=name;
    this.energy=energy
}

Dog.prototype=Emitter.prototype;
// Dog.prototype.bark=function(){
//     // for(var i=this.energy;i>0;i--){
//         console.log(this.name+' bark!!');
//     // }
    
// }

module.exports=Dog;